package com.stillalive.blogsystem.pojo.request;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class AddBlogRequest {
    @NotNull(message = "userId不能为null..")
    private Integer userId;

    @NotNull(message = "标题不能为空..")
    @Length(max = 25, min = 3)
    private String title;

    @NotNull(message = "内容不能为空")
    @Length(min = 5)
    private String content;
}
